Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix bug in CountString with null values #154

Merged
merged 8 commits into from
Jun 16, 2022
Merged

Conversation

thehomebrewnerd
Copy link
Contributor

@thehomebrewnerd thehomebrewnerd commented Jun 16, 2022

Fixes a bug in CountString and related primitives in which a series that had an integer value in the first element but null values further down would result in an error when attempting to calculate feature values. This is due to the fact the the np.vectorize function uses the first element to determine the proper dtype to use and would identify int which is incompatible with the missing values.

ValueError: cannot convert float NaN to integer

@thehomebrewnerd thehomebrewnerd merged commit 74c1470 into main Jun 16, 2022
@thehomebrewnerd thehomebrewnerd deleted the whitespace-count-bug branch June 16, 2022 18:02
@rwedge rwedge mentioned this pull request Jun 16, 2022
@thehomebrewnerd thehomebrewnerd self-assigned this Jun 30, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants